package com.fxd.crm.mapper;

import com.fxd.crm.model.CourseOrder;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @auther fuxudong
 * @date 2021/3/28 - 18:13
 */
@Mapper
public interface CourseOrderBaseMapper {
    int findCountByMap(Map<String, Object> map);

    int findCountByMapByName(String name);

    List<CourseOrder> findListByMap(Map<String, Object> map);

    List<CourseOrder> findListByMapByName(String name);

    void insert(CourseOrder courseOrder);

    CourseOrder findByOrderId(Integer order_id);

    void deleteByOrderId(Integer order_id);

    void update(CourseOrder order);
}
